package com.seqb.manage.paper.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seqb.annotation.Ignored;
import com.seqb.common.dto.CommDTO;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author lilinshen
 * @title 试卷试题表
 * @description 请填写相关描述
 * @date 2019-12-04
 */
@Data
@TableName("t_paper_question")
public class PaperQuestionDO extends CommDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    //唯一编号
    private Long id;
    //试卷ID
    private Long paperId;
    //题号
    @Ignored
    private Long sortNumber;
    //问题ID
    private Long questionId;
    //问题类型(1-选择题，2-综合题)
    private String type;
    //创建者编号
    @TableField(fill = FieldFill.INSERT)
    private Long createNumber;
    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Date createDate;
    //修改时间
    @TableField(fill = FieldFill.INSERT_UPDATE, update = "now()")
    private Date updateDate;
    //是否删除(0-否，1-是)
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    private String isDelete;
    //版本号
    @TableField(fill = FieldFill.INSERT_UPDATE, update = "%s+1")
    private Long version;
    //题目
    @TableField(exist = false)
    private String name;
    //科目ID
    @TableField(exist = false)
    private String subjectId;
    //科目名称
    @TableField(exist = false)
    private String subjectName;
    //题目选项
    @TableField(exist = false)
    private String choiceOption;
    //选项类型(1-文本，2-1张图片含1个选项，3-1张图片含所有选项)
    @TableField(exist = false)
    private String optionType;
    //答案
    @TableField(exist = false)
    private String answer;
    //答案解析
    @TableField(exist = false)
    private String answerAnalysis;
    //图片路径
    @TableField(exist = false)
    private String fileUrl;
}
